import req from '../request'
export class Api {
    constructor(url) {
        this.get = data => {
            return req.get(url, data)
        }
        this.del = data => {
            return req.del(url, data)
        }
        this.edit = data => {
            return req.put(url, data)
        }
        this.add = data => {
            return req.post(url, data)
        }
    }
}
